﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Document Convert Test</title>
</head>
<body>
<div>
<form method="post" action="/unoconv" enctype="multipart/form-data">
<input type="file" name="file" value="..." /><br />
<input type="submit" value="提交" />
</form>
</div>
<canvas width="400" height="320" style="border: 1px solid red"></canvas>
</body>
</html>
<script type="text/javascript">
    window.onload = function () {
        var canvas = document.getElementsByTagName("canvas")[0];
        var ctx = canvas.getContext('2d');
        ctx.beginPath();
        ctx.moveTo(10, 10);
        ctx.lineTo(100, 200);
        ctx.lineCap = 'round';
        ctx.lineJoin = 'round';
        ctx.lineWidth = 3;
        ctx.strokeStyle = '#FF0000';
        ctx.stroke();
    }
</script>